#include "TaskList.h"
#include "TaskIcon.h"
#include "CCBSelectorResolver.h"
#include "TaskListLoader.h"

TaskList::TaskList(void)
{
	
}


TaskList::~TaskList(void)
{
}

bool TaskList::init()
{
	return true;
}

void TaskList::onListBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent)
{
	Framework::getSingletonPtr()->changeState("DungeonsListScene");
}

void TaskList::refresh()
{

}

cocos2d::SEL_MenuHandler TaskList::onResolveCCBCCMenuItemSelector( cocos2d::CCObject * pTarget, cocos2d::CCString * pSelectorName )
{
	return NULL;
}

cocos2d::extension::SEL_CCControlHandler TaskList::onResolveCCBCCControlSelector( cocos2d::CCObject * pTarget, cocos2d::CCString * pSelectorName )
{
	CCB_SELECTORRESOLVER_CCCONTROL_GLUE(this, "onListBtnClick", TaskList::onListBtnClick);
	return NULL;
}

bool TaskList::onAssignCCBMemberVariable( cocos2d::CCObject * pTarget, cocos2d::CCString * pMemberVariableName, cocos2d::CCNode * pNode )
{
	return false;
}

void TaskList::onEnter()
{
	CCNode::onEnter();
}

void TaskList::onExit()
{
	CCNode::onExit();
}

TaskList* TaskList::create( CCObject* pOwer )
{
	RegisterLoader("TaskList", TaskListLoader::loader());
	return (TaskList*)(ReadNode("TaskList.ccbi", pOwer));
}
